import request from '@/utils/request'
// @param{ object } data
// import store from '@/store'
export const login = data => {
  return request({
    method: 'post',
    url: '/app/v1_0/authorizations',
    data
  })
}
export const sendCode = mobile => {
  return request({
    method: 'GET',
    url: '/app/v1_0/sms/codes/' + mobile

  })
}
// 获取用户信息
export const getUserProfile = () => {
  return request({
    method: 'GET',
    url: '/app/v1_0/user'
    // headers: {
    //   Authorization: 'Bearer ' + store.state.user.token
    // }

  })
}
// 获取用户列表频道信息
export const getUserChannles = () => {
  return request({
    method: 'GET',
    url: '/app/v1_0/user/channels'
    // headers: {
    //   Authorization: 'Bearer ' + store.state.user.token
    // }

  })
}
